package com.hjm.project.terminal.tailmoney.service.impl;

import java.util.List;

import com.hjm.project.terminal.tailmoney.domain.AgentPosTailmoney;
import com.hjm.project.terminal.tailmoney.mapper.AgentPosTailmoneyMapper;
import com.hjm.project.terminal.tailmoney.service.IAgentPosTailmoneyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hjm.common.utils.text.Convert;

/**
 * 服务商机具尾款信息Service业务层处理
 * 
 * @author LOVE
 * @date 2020-11-27
 */
@Service
public class AgentPosTailmoneyServiceImpl implements IAgentPosTailmoneyService
{
    @Autowired
    private AgentPosTailmoneyMapper agentPosTailmoneyMapper;

    /**
     * 查询服务商机具尾款信息
     * 
     * @param id 服务商机具尾款信息ID
     * @return 服务商机具尾款信息
     */
    @Override
    public AgentPosTailmoney selectAgentPosTailmoneyById(Long id)
    {
        return agentPosTailmoneyMapper.selectAgentPosTailmoneyById(id);
    }

    /**
     * 查询服务商机具尾款信息列表
     * 
     * @param agentPosTailmoney 服务商机具尾款信息
     * @return 服务商机具尾款信息
     */
    @Override
    public List<AgentPosTailmoney> selectAgentPosTailmoneyList(AgentPosTailmoney agentPosTailmoney)
    {
        return agentPosTailmoneyMapper.selectAgentPosTailmoneyList(agentPosTailmoney);
    }

    /**
     * 新增服务商机具尾款信息
     * 
     * @param agentPosTailmoney 服务商机具尾款信息
     * @return 结果
     */
    @Override
    public int insertAgentPosTailmoney(AgentPosTailmoney agentPosTailmoney)
    {
        return agentPosTailmoneyMapper.insertAgentPosTailmoney(agentPosTailmoney);
    }

    /**
     * 修改服务商机具尾款信息
     * 
     * @param agentPosTailmoney 服务商机具尾款信息
     * @return 结果
     */
    @Override
    public int updateAgentPosTailmoney(AgentPosTailmoney agentPosTailmoney)
    {
        return agentPosTailmoneyMapper.updateAgentPosTailmoney(agentPosTailmoney);
    }

    /**
     * 删除服务商机具尾款信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteAgentPosTailmoneyByIds(String ids)
    {
        return agentPosTailmoneyMapper.deleteAgentPosTailmoneyByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除服务商机具尾款信息信息
     * 
     * @param id 服务商机具尾款信息ID
     * @return 结果
     */
    @Override
    public int deleteAgentPosTailmoneyById(Long id)
    {
        return agentPosTailmoneyMapper.deleteAgentPosTailmoneyById(id);
    }
}
